package com.gupaoedu.vip.mall.goods.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/*****
 * @Author: 波波
 * @Description: 云商城
 ****/
@Data
@AllArgsConstructor
@NoArgsConstructor
//MyBatisPlus表映射注解
@TableName(value = "sku")
public class Sku {   //商品sku表

    @TableId(type = IdType.ASSIGN_ID)
    private String id;   //商品id
    private String name;  //SKU名称
    private Integer price; //价格（分
    private Integer num;   //库存数量
    private String image;  //商品图片
    private String images;  //商品图片列表
    private Date createTime; //创建时间
    private Date updateTime;  //更新时间
    private String spuId;  //SPUID
    private Integer categoryId; //类目ID
    private String categoryName; //类目名称
    private Integer brandId; //品牌id
    private String brandName;//品牌名称
    private String skuAttribute; //规格
    private Integer status;  //商品状态 1-正常，2-下架，3-删除
}
